<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>js prompt</title>

    <script type="text/javascript">
        var name = prompt("Please enter your name", "123");
        alert(name);
    </script>
</head>
<body>

</body>
</html>